STEP 12: If the random number is 2, we'll have the computer choose "paper" and make a paper sprite appear.

  • Go to and drag an if block not indented to the bottom of your program.
  • Change the test variable to random_choice. Change the test value to 2.
  • Click GRAPHICS and go to . Drag Paper indented into the if block.


To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)